package cn.iocoder.yudao.module.picturebook.config;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OssConfig {

    @Bean
    public OSS ossClient() {
        String accessKeyId = "LTAI5tAYAoxxf5a41LSmabjz";
        String accessKeySecret = "fzmxUVc4RpcXPItBMyB4oo4Q0ddynd";
        String endpoint = "oss-cn-hangzhou.aliyuncs.com";
        return new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
    }
}    